<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="./template/StakeholderTemplate.xhtml">

    <ui:define name="contentInsert">
        <h:body>
            <h:form id="formMain">
                <h1>Stakeholder Select Product</h1>
                <p:menubar autoSubmenuDisplay="true">
                    <p:submenu label="Login">
                        <p:menuitem value="Login" url="StakeholderLogin.xhtml" />
                    </p:submenu>

                    <p:submenu label="Branch Management">
                        <p:menuitem value="Add Branch" url="StakeholderAddBranch.xhtml" />
                        <p:menuitem value="View All" url="StakeholderViewAllBranch.xhtml" />
                        <p:menuitem value="Edit Info" url="TCubeEditBranchInfo.xhtml" />

                    </p:submenu>
                </p:menubar>  
                <p:panel id="panel" header="Add New Stakeholder">    
                    <h:panelGrid columns="3" cellpadding="10">
                        <h:outputLabel for="username" style="font-weight: bold" value="Stakeholder username: " />
                        <h:inputText required="true" label="Event Name" requiredMessage="Stakeholder username is required." id="username" value="#{productManagerBean.productId}">
                        </h:inputText>
                    </h:panelGrid>
                    <p:commandButton id="btn" value="Sign in Stakeholder" update="panel" action="StakeholderEditPriceControl?faces-redirect=true" actionListener="#{productManagerBean.retrieveProductInfo}" />
                </p:panel>
            </h:form>
        </h:body>
    </ui:define>
</ui:composition>